<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="text" name="" id="i1">
    <span id="s1"></span>
</body>
</html>


<script>
    i1.onblur=function(){
    var reg=/^[0-9a-zA-Z]{6,11}@(163|qq|126)\.(com|cn|sina|net)/
    if(reg.test(i1.value)){
        s1.innerHTML="验证成功"
    }else{
        s1.innerHTML="验证失败"
    }
    }
   
</script>